package com.p2p.noc.Demo.application;

public class PersonDemo {
    public static void main(String[] args) {
        Teather t = new Teather();
        t.setName("王祖贤");
        t.setAge(18);
        System.out.println("老师:"+t.getName()+"\t\t"+"年龄："+t.getAge());
        t.teach();

        Student s = new Student();
        s.setName("小明");
        s.setAge(7);
        System.out.println("学生："+s.getName()+"\t\t"+"年龄："+s.getAge());
        s.study();
    }
}
